//
//  YWLocalPhotoBrowseView.h
//  yuwei
//
//  Created by slz on 2017/2/24.
//  Copyright © 2017年 youyuwei. All rights reserved.
//

#import <UIKit/UIKit.h>
//@interface YWPhotoGroupItem : NSObject
//@property (nonatomic, strong) UIView *thumbView; ///< thumb image, used for animation position calculation
//@property (nonatomic, assign) CGSize largeImageSize;
//@property (nonatomic, strong) NSURL *largeImageURL;
//@end
@protocol YWLocalPhotoBrowseViewDelegate <NSObject>

- (void)localViewWillDismiss;

@end

@interface YWLocalPhotoBrowseView : UIView
@property (nonatomic, readonly) NSArray *groupItems; ///< Array<YYPhotoGroupItem>
@property (nonatomic, readonly) NSInteger currentPage;
@property (nonatomic, assign) BOOL blurEffectBackground; ///< Default is YES
@property (nonatomic, weak)id <YWLocalPhotoBrowseViewDelegate>delegate;

- (instancetype)init UNAVAILABLE_ATTRIBUTE;
- (instancetype)initWithFrame:(CGRect)frame UNAVAILABLE_ATTRIBUTE;
+ (instancetype)new UNAVAILABLE_ATTRIBUTE;
- (instancetype)initWithGroupItems:(NSArray *)groupItems;

- (void)presentAtIndex:(NSInteger)index
              fromView:(UIView *)fromView
           toContainer:(UIView *)toContainer
              animated:(BOOL)animated
            completion:(void (^)(void))completion;

- (void)dismissAnimated:(BOOL)animated completion:(void (^)(void))completion;
- (void)dismiss;
@end
